package com.centaline.androidsalesblog.model.businissobject;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 新盘主力户型
 * Created by guilin on 16/2/23.
 */
public class NewEstMainHouseTypeBo implements Parcelable {

    private int HouseTypeId;
    private String EstId;
    private String HouseTypeName;
    private boolean MainHuxing;
    private int Area;
    private int InsideArea;
    private String BuildType;
    private int Park;
    private String Fitment;
    private int RoomCnt;
    private int HallCnt;
    private int KitchenCnt;
    private int ToiletCnt;
    private int BalconyCnt;
    private String Description;

    public int getHouseTypeId() {
        return HouseTypeId;
    }

    public void setHouseTypeId(int houseTypeId) {
        HouseTypeId = houseTypeId;
    }

    public String getEstId() {
        return EstId;
    }

    public void setEstId(String estId) {
        EstId = estId;
    }

    public String getHouseTypeName() {
        return HouseTypeName;
    }

    public void setHouseTypeName(String houseTypeName) {
        HouseTypeName = houseTypeName;
    }

    public boolean isMainHuxing() {
        return MainHuxing;
    }

    public void setMainHuxing(boolean mainHuxing) {
        MainHuxing = mainHuxing;
    }

    public int getArea() {
        return Area;
    }

    public void setArea(int area) {
        Area = area;
    }

    public int getInsideArea() {
        return InsideArea;
    }

    public void setInsideArea(int insideArea) {
        InsideArea = insideArea;
    }

    public String getBuildType() {
        return BuildType;
    }

    public void setBuildType(String buildType) {
        BuildType = buildType;
    }

    public int getPark() {
        return Park;
    }

    public void setPark(int park) {
        Park = park;
    }

    public String getFitment() {
        return Fitment;
    }

    public void setFitment(String fitment) {
        Fitment = fitment;
    }

    public int getRoomCnt() {
        return RoomCnt;
    }

    public void setRoomCnt(int roomCnt) {
        RoomCnt = roomCnt;
    }

    public int getHallCnt() {
        return HallCnt;
    }

    public void setHallCnt(int hallCnt) {
        HallCnt = hallCnt;
    }

    public int getKitchenCnt() {
        return KitchenCnt;
    }

    public void setKitchenCnt(int kitchenCnt) {
        KitchenCnt = kitchenCnt;
    }

    public int getToiletCnt() {
        return ToiletCnt;
    }

    public void setToiletCnt(int toiletCnt) {
        ToiletCnt = toiletCnt;
    }

    public int getBalconyCnt() {
        return BalconyCnt;
    }

    public void setBalconyCnt(int balconyCnt) {
        BalconyCnt = balconyCnt;
    }

    public String getDescription() {
        return Description;
    }

    public void setDescription(String description) {
        Description = description;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.HouseTypeId);
        dest.writeString(this.EstId);
        dest.writeString(this.HouseTypeName);
        dest.writeByte(MainHuxing ? (byte) 1 : (byte) 0);
        dest.writeInt(this.Area);
        dest.writeInt(this.InsideArea);
        dest.writeString(this.BuildType);
        dest.writeInt(this.Park);
        dest.writeString(this.Fitment);
        dest.writeInt(this.RoomCnt);
        dest.writeInt(this.HallCnt);
        dest.writeInt(this.KitchenCnt);
        dest.writeInt(this.ToiletCnt);
        dest.writeInt(this.BalconyCnt);
        dest.writeString(this.Description);
    }

    public NewEstMainHouseTypeBo() {
    }

    protected NewEstMainHouseTypeBo(Parcel in) {
        this.HouseTypeId = in.readInt();
        this.EstId = in.readString();
        this.HouseTypeName = in.readString();
        this.MainHuxing = in.readByte() != 0;
        this.Area = in.readInt();
        this.InsideArea = in.readInt();
        this.BuildType = in.readString();
        this.Park = in.readInt();
        this.Fitment = in.readString();
        this.RoomCnt = in.readInt();
        this.HallCnt = in.readInt();
        this.KitchenCnt = in.readInt();
        this.ToiletCnt = in.readInt();
        this.BalconyCnt = in.readInt();
        this.Description = in.readString();
    }

    public static final Parcelable.Creator<NewEstMainHouseTypeBo> CREATOR = new Parcelable.Creator<NewEstMainHouseTypeBo>() {
        public NewEstMainHouseTypeBo createFromParcel(Parcel source) {
            return new NewEstMainHouseTypeBo(source);
        }

        public NewEstMainHouseTypeBo[] newArray(int size) {
            return new NewEstMainHouseTypeBo[size];
        }
    };
}
